<?php if (!defined('NOVA_RUN')) die('You can\'t access this file directly!'); ?><?php $this->load('header'); ?>
<form method="post">
<b><a href="<?php echo make_admin_link('category', 'permissions', array(Router::param(0))); ?>">BACK</a></b><br />
<?php if ($this->success != null): ?> <span style="color:green;"><?php echo $this->success; ?></span> <?php endif; ?>
<?php // TODO: make a lost below by foreach (Names of permissions could be gotten from $lang['name'], where name is a permission system name) ?>
<ul>
<li>View category :<input type="checkbox" name="view"<?php if ($this->permissions['view'] == 1) echo ' checked="true"'; ?> value="1" /></li>
<li>Read topics in category :<input type="checkbox" name="read"<?php if ($this->permissions['read'] == 1) echo ' checked="true"'; ?> value="1" /></li>
<li>Read own topics in category :<input type="checkbox" name="read_own_topics"<?php if ($this->permissions['read_own_topics'] == 1) echo ' checked="true"'; ?> value="1" /></li>
<li>Create topics in category :<input type="checkbox" name="create_topics"<?php if ($this->permissions['create_topics'] == 1) echo ' checked="true"'; ?> value="1" /></li>
<li>Reply in topics:<input type="checkbox" name="reply"<?php if ($this->permissions['reply'] == 1) echo ' checked="true"'; ?> value="1" /></li>
<li>Reply in own topics :<input type="checkbox" name="reply_own_topics"<?php if ($this->permissions['reply_own_topics'] == 1) echo ' checked="true"'; ?> value="1" /></li>
<li>Edit posts :<input type="checkbox" name="edit"<?php if ($this->permissions['edit'] == 1) echo ' checked="true"'; ?> value="1" /></li>
<li>Edit own posts :<input type="checkbox" name="edit_own_posts"<?php if ($this->permissions['edit_own_posts'] == 1) echo ' checked="true"'; ?> value="1" /></li>
<li>Remove posts :<input type="checkbox" name="remove"<?php if ($this->permissions['remove'] == 1) echo ' checked="true"'; ?> value="1" /></li>
<li>Remove own posts :<input type="checkbox" name="remove_own_posts"<?php if ($this->permissions['remove_own_posts'] == 1) echo ' checked="true"'; ?> value="1" /></li>
<li>Remove topics :<input type="checkbox" name="remove_topics"<?php if ($this->permissions['remove_topics'] == 1) echo ' checked="true"'; ?> value="1" /></li>
<li>Remove own topics :<input type="checkbox" name="remove_own_topics"<?php if ($this->permissions['remove_own_topics'] == 1) echo ' checked="true"'; ?> value="1" /></li>
</ul>
<input type="hidden" name="secretKey" value="<?php echo Engine::secretKey(); ?>" />
<input type="hidden" name="set_permissions" value="1" />
<input type="submit" value="save" />
</form>
<?php $this->load('footer'); ?>